//
//  TitleCollectionViewCell.m
//  15---Homework15网易新闻
//
//  Created by 冀永金 on 16/8/3.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "TitleCollectionViewCell.h"
#import "TitleModel.h"
@implementation TitleCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.label = [[UILabel alloc]init];
        _label.textColor = [UIColor colorWithRed:0.75 green:0.75 blue:0.75 alpha:1.00];
        [self.contentView addSubview:_label];
    }
    return self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    self.label.frame = self.contentView.frame;
}
- (void)setModel:(TitleModel *)model {
    _model = model;
    self.label.text = model.tname;
}
@end
